3.13.80 \(\int \frac {\text {ArcTan}(x) \log (1+x^2)}{x} \, dx\) [1280]

Optimal. Leaf size=189 \[ -\frac {1}{2} i \log ^2(1+i x) \log (-i x)+\frac {1}{2} i \log ^2(1-i x) \log (i x)+i \log (1-i x) \text {PolyLog}(2,1-i x)-i \log (1+i x) \text {PolyLog}(2,1+i x)-\frac {1}{2} i \left (\log (1-i x)+\log (1+i x)-\log \left (1+x^2\right )\right ) \text {PolyLog}(2,-i x)+\frac {1}{2} i \left (\log (1-i x)+\log (1+i x)-\log \left (1+x^2\right )\right ) \text {PolyLog}(2,i x)-i \text {PolyLog}(3,1-i x)+i \text {PolyLog}(3,1+i x) \]

[Out]

-1/2*I*ln(1+I*x)^2*ln(-I*x)+1/2*I*ln(1-I*x)^2*ln(I*x)+I*ln(1-I*x)*polylog(2,1-I*x)-I*ln(1+I*x)*polylog(2,1+I*x
)-1/2*I*(ln(1-I*x)+ln(1+I*x)-ln(x^2+1))*polylog(2,-I*x)+1/2*I*(ln(1-I*x)+ln(1+I*x)-ln(x^2+1))*polylog(2,I*x)-I
*polylog(3,1-I*x)+I*polylog(3,1+I*x)

________________________________________________________________________________________

Rubi [A]
time = 0.13, antiderivative size = 189, normalized size of antiderivative = 1.00, number of steps used = 12, number of rules used = 7, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.583, Rules used = {4940, 2438, 5131, 2443, 2481, 2421, 6724} \begin {gather*} -\frac {1}{2} i \text {Li}_2(-i x) \left (-\log \left (x^2+1\right )+\log (1-i x)+\log (1+i x)\right )+\frac {1}{2} i \text {Li}_2(i x) \left (-\log \left (x^2+1\right )+\log (1-i x)+\log (1+i x)\right )-i \text {Li}_3(1-i x)+i \text {Li}_3(i x+1)+i \text {Li}_2(1-i x) \log (1-i x)-i \text {Li}_2(i x+1) \log (1+i x)+\frac {1}{2} i \log (i x) \log ^2(1-i x)-\frac {1}{2} i \log ^2(1+i x) \log (-i x) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(ArcTan[x]*Log[1 + x^2])/x,x]

[Out]

(-1/2*I)*Log[1 + I*x]^2*Log[(-I)*x] + (I/2)*Log[1 - I*x]^2*Log[I*x] + I*Log[1 - I*x]*PolyLog[2, 1 - I*x] - I*L
og[1 + I*x]*PolyLog[2, 1 + I*x] - (I/2)*(Log[1 - I*x] + Log[1 + I*x] - Log[1 + x^2])*PolyLog[2, (-I)*x] + (I/2
)*(Log[1 - I*x] + Log[1 + I*x] - Log[1 + x^2])*PolyLog[2, I*x] - I*PolyLog[3, 1 - I*x] + I*PolyLog[3, 1 + I*x]

Rule 2421

Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.))/(x_), x_Symbol] :> Simp
[(-PolyLog[2, (-d)*f*x^m])*((a + b*Log[c*x^n])^p/m), x] + Dist[b*n*(p/m), Int[PolyLog[2, (-d)*f*x^m]*((a + b*L
og[c*x^n])^(p - 1)/x), x], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && IGtQ[p, 0] && EqQ[d*e, 1]

Rule 2438

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> Simp[-PolyLog[2, (-c)*e*x^n]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 2443

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_)/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[Log[e*((
f + g*x)/(e*f - d*g))]*((a + b*Log[c*(d + e*x)^n])^p/g), x] - Dist[b*e*n*(p/g), Int[Log[(e*(f + g*x))/(e*f - d
*g)]*((a + b*Log[c*(d + e*x)^n])^(p - 1)/(d + e*x)), x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p}, x] && NeQ[e*
f - d*g, 0] && IGtQ[p, 1]

Rule 2481

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_.) + Log[(h_.)*((i_.) + (j_.)*(x_))^(m_.)]*
(g_.))*((k_.) + (l_.)*(x_))^(r_.), x_Symbol] :> Dist[1/e, Subst[Int[(k*(x/d))^r*(a + b*Log[c*x^n])^p*(f + g*Lo
g[h*((e*i - d*j)/e + j*(x/e))^m]), x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, h, i, j, k, l, n, p, r},
 x] && EqQ[e*k - d*l, 0]

Rule 4940

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))/(x_), x_Symbol] :> Simp[a*Log[x], x] + (Dist[I*(b/2), Int[Log[1 - I*c*x
]/x, x], x] - Dist[I*(b/2), Int[Log[1 + I*c*x]/x, x], x]) /; FreeQ[{a, b, c}, x]

Rule 5131

Int[(ArcTan[(c_.)*(x_)]*Log[(f_.) + (g_.)*(x_)^2])/(x_), x_Symbol] :> Dist[Log[f + g*x^2] - Log[1 - I*c*x] - L
og[1 + I*c*x], Int[ArcTan[c*x]/x, x], x] + (Dist[I/2, Int[Log[1 - I*c*x]^2/x, x], x] - Dist[I/2, Int[Log[1 + I
*c*x]^2/x, x], x]) /; FreeQ[{c, f, g}, x] && EqQ[g, c^2*f]

Rule 6724

Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[PolyLog[n + 1, c*(a
+ b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d, e, n, p}, x] && EqQ[b*d, a*e]

Rubi steps

\begin {align*} \int \frac {\tan ^{-1}(x) \log \left (1+x^2\right )}{x} \, dx &=\frac {1}{2} i \int \frac {\log ^2(1-i x)}{x} \, dx-\frac {1}{2} i \int \frac {\log ^2(1+i x)}{x} \, dx+\left (-\log (1-i x)-\log (1+i x)+\log \left (1+x^2\right )\right ) \int \frac {\tan ^{-1}(x)}{x} \, dx\\ &=-\frac {1}{2} i \log ^2(1+i x) \log (-i x)+\frac {1}{2} i \log ^2(1-i x) \log (i x)+\frac {1}{2} \left (i \left (\log (1-i x)+\log (1+i x)-\log \left (1+x^2\right )\right )\right ) \int \frac {\log (1+i x)}{x} \, dx+\frac {1}{2} \left (i \left (-\log (1-i x)-\log (1+i x)+\log \left (1+x^2\right )\right )\right ) \int \frac {\log (1-i x)}{x} \, dx-\int \frac {\log (1+i x) \log (-i x)}{1+i x} \, dx-\int \frac {\log (1-i x) \log (i x)}{1-i x} \, dx\\ &=-\frac {1}{2} i \log ^2(1+i x) \log (-i x)+\frac {1}{2} i \log ^2(1-i x) \log (i x)-\frac {1}{2} i \left (\log (1-i x)+\log (1+i x)-\log \left (1+x^2\right )\right ) \text {Li}_2(-i x)+\frac {1}{2} i \left (\log (1-i x)+\log (1+i x)-\log \left (1+x^2\right )\right ) \text {Li}_2(i x)+i \text {Subst}\left (\int \frac {\log (-i (i-i x)) \log (x)}{x} \, dx,x,1+i x\right )-i \text {Subst}\left (\int \frac {\log (i (-i+i x)) \log (x)}{x} \, dx,x,1-i x\right )\\ &=-\frac {1}{2} i \log ^2(1+i x) \log (-i x)+\frac {1}{2} i \log ^2(1-i x) \log (i x)+i \log (1-i x) \text {Li}_2(1-i x)-i \log (1+i x) \text {Li}_2(1+i x)-\frac {1}{2} i \left (\log (1-i x)+\log (1+i x)-\log \left (1+x^2\right )\right ) \text {Li}_2(-i x)+\frac {1}{2} i \left (\log (1-i x)+\log (1+i x)-\log \left (1+x^2\right )\right ) \text {Li}_2(i x)-i \text {Subst}\left (\int \frac {\text {Li}_2(x)}{x} \, dx,x,1-i x\right )+i \text {Subst}\left (\int \frac {\text {Li}_2(x)}{x} \, dx,x,1+i x\right )\\ &=-\frac {1}{2} i \log ^2(1+i x) \log (-i x)+\frac {1}{2} i \log ^2(1-i x) \log (i x)+i \log (1-i x) \text {Li}_2(1-i x)-i \log (1+i x) \text {Li}_2(1+i x)-\frac {1}{2} i \left (\log (1-i x)+\log (1+i x)-\log \left (1+x^2\right )\right ) \text {Li}_2(-i x)+\frac {1}{2} i \left (\log (1-i x)+\log (1+i x)-\log \left (1+x^2\right )\right ) \text {Li}_2(i x)-i \text {Li}_3(1-i x)+i \text {Li}_3(1+i x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [F]
time = 0.54, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\text {ArcTan}(x) \log \left (1+x^2\right )}{x} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

Integrate[(ArcTan[x]*Log[1 + x^2])/x,x]

[Out]

Integrate[(ArcTan[x]*Log[1 + x^2])/x, x]

________________________________________________________________________________________

Maple [C] Result contains higher order function than in optimal. Order 9 vs. order 4.
time = 13.26, size = 5237, normalized size = 27.71

method result size
risch \(\text {Expression too large to display}\) \(5237\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(arctan(x)*ln(x^2+1)/x,x,method=_RETURNVERBOSE)

[Out]

result too large to display

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arctan(x)*log(x^2+1)/x,x, algorithm="maxima")

[Out]

integrate(arctan(x)*log(x^2 + 1)/x, x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arctan(x)*log(x^2+1)/x,x, algorithm="fricas")

[Out]

integral(arctan(x)*log(x^2 + 1)/x, x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\log {\left (x^{2} + 1 \right )} \operatorname {atan}{\left (x \right )}}{x}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(atan(x)*ln(x**2+1)/x,x)

[Out]

Integral(log(x**2 + 1)*atan(x)/x, x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arctan(x)*log(x^2+1)/x,x, algorithm="giac")

[Out]

integrate(arctan(x)*log(x^2 + 1)/x, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\ln \left (x^2+1\right )\,\mathrm {atan}\left (x\right )}{x} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((log(x^2 + 1)*atan(x))/x,x)

[Out]

int((log(x^2 + 1)*atan(x))/x, x)

________________________________________________________________________________________